package com.cn.wanxi.service;

import com.cn.wanxi.model.NewsModel;
import com.cn.wanxi.model.PageModel;

import java.util.List;
import java.util.Map;

public interface INewsService {

    int addNews(NewsModel newsModel);

    int deleteNews(int id);

    int editNews(NewsModel newsModel);

    List<NewsModel> getNewsList(Map<String, Object> map);

    NewsModel getNews(int id);

    PageModel<NewsModel> getAllNews(Map<String,Object> map);

    int updateShow(int id, int show);
}
